package com.ruoyi.driver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.DriverInfoAttachmentsMapper;
import com.ruoyi.driver.domain.DriverInfoAttachments;
import com.ruoyi.driver.service.IDriverInfoAttachmentsService;

/**
 * 司机信息附件Service业务层处理
 * 
 * @author yyj
 * @date 2025-08-17
 */
@Service
public class DriverInfoAttachmentsServiceImpl implements IDriverInfoAttachmentsService 
{
    @Autowired
    private DriverInfoAttachmentsMapper driverInfoAttachmentsMapper;

    /**
     * 查询司机信息附件
     * 
     * @param id 司机信息附件主键
     * @return 司机信息附件
     */
    @Override
    public DriverInfoAttachments selectDriverInfoAttachmentsById(Long id)
    {
        return driverInfoAttachmentsMapper.selectDriverInfoAttachmentsById(id);
    }

    /**
     * 查询司机信息附件列表
     * 
     * @param driverInfoAttachments 司机信息附件
     * @return 司机信息附件
     */
    @Override
    public List<DriverInfoAttachments> selectDriverInfoAttachmentsList(DriverInfoAttachments driverInfoAttachments)
    {
        return driverInfoAttachmentsMapper.selectDriverInfoAttachmentsList(driverInfoAttachments);
    }

    /**
     * 新增司机信息附件
     * 
     * @param driverInfoAttachments 司机信息附件
     * @return 结果
     */
    @Override
    public int insertDriverInfoAttachments(DriverInfoAttachments driverInfoAttachments)
    {
        return driverInfoAttachmentsMapper.insertDriverInfoAttachments(driverInfoAttachments);
    }

    /**
     * 修改司机信息附件
     * 
     * @param driverInfoAttachments 司机信息附件
     * @return 结果
     */
    @Override
    public int updateDriverInfoAttachments(DriverInfoAttachments driverInfoAttachments)
    {
        return driverInfoAttachmentsMapper.updateDriverInfoAttachments(driverInfoAttachments);
    }

    /**
     * 批量删除司机信息附件
     * 
     * @param ids 需要删除的司机信息附件主键
     * @return 结果
     */
    @Override
    public int deleteDriverInfoAttachmentsByIds(Long[] ids)
    {
        return driverInfoAttachmentsMapper.deleteDriverInfoAttachmentsByIds(ids);
    }

    /**
     * 删除司机信息附件信息
     * 
     * @param id 司机信息附件主键
     * @return 结果
     */
    @Override
    public int deleteDriverInfoAttachmentsById(Long id)
    {
        return driverInfoAttachmentsMapper.deleteDriverInfoAttachmentsById(id);
    }
}
